package ma.jee.portailReservation.service.announce;

import ma.jee.portailReservation.persistence.announce.Announce;
import ma.jee.portailReservation.persistence.announce.TransportCompany;
import ma.jee.portailReservation.persistence.announce.Travel;
import ma.jee.portailReservation.persistence.announce.TravelAgency;
import org.joda.time.DateTime;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 03/01/12
 * Time: 00:03
 * To change this template use File | Settings | File Templates.
 */
public class DisplayTravel implements Serializable{

    private Travel travel;

    public DisplayTravel(Travel travel) {
        this.travel = travel;
    }


    public long getIdTravel() {
        return travel.getIdTravel();
    }

    public void setIdTravel(long id) {
        this.travel.setIdTravel(id);
    }

    public DateTime getDepartureDate() {
        return travel.getDepartureDate();
    }

    public void setDepartureDate(DateTime departureDate) {
        this.travel.setDepartureDate(departureDate);
    }

    public DateTime getArrivalDate() {
        return travel.getArrivalDate();
    }

    public void setArrivalDate(DateTime arrivalDate) {
        this.setArrivalDate(arrivalDate);
    }

    public String getOriginTravel() {
        return travel.getOriginTravel();
    }

    public void setOriginTravel(String originTravel) {
        this.travel.setOriginTravel(originTravel);
    }

    public String getDestinationTravel() {
        return travel.getDestinationTravel();
    }

    public void setDestinationTravel(String destinationTravel) {
        this.travel.setDestinationTravel(destinationTravel);
    }

    public String getClassTravel() {
        return travel.getClassTravel();
    }

    public void setClassTravel(String classTravel) {
        this.travel.setClassTravel(classTravel);
    }

    public String isDirectLine() {
        return travel.getDirectLine();
    }

    public void setDirectLine(String directLine) {
        this.travel.setDirectLine(directLine);
    }

    public TravelAgency getTravelAgency() {
        return travel.getTravelAgency();
    }

    public void setTravelAgency(TravelAgency travelAgency) {
        this.travel.setTravelAgency(travelAgency);
    }

    public TransportCompany getTransportCompany() {
        return travel.getTransportCompany();
    }

    public void setTransportCompany(TransportCompany transportCompany) {
        this.travel.setTransportCompany(transportCompany);
    }

    public Announce getAnnounceTravel() {
        return travel.getAnnounceTravel();
    }

    public void setAnnounceTravel(Announce announceTravel) {
        this.travel.setAnnounceTravel(announceTravel);
    }

}
